import type { RouteRecordRaw } from 'vue-router'

/**
 * 常量路由配置
 * 包含应用的基础路由，如首页、博客、文章详情、关于页面等
 */
export const constantRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Home.vue'),
    meta: {
      title: '首页',
      description: '欢迎来到我的个人博客',
    },
  },
  {
    path: '/blog',
    name: 'Blog',
    component: () => import('@/views/Blog.vue'),
    meta: {
      title: '博客',
      description: '最新的技术文章和思考',
    },
  },
  {
    path: '/article/:id',
    name: 'Article',
    component: () => import('@/views/Article.vue'),
    props: true,
    meta: {
      title: '文章详情',
    },
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('@/views/About.vue'),
    meta: {
      title: '关于',
      description: '关于我和这个博客',
    },
  },
]
